<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>增加文章页面</title>

<link rel="stylesheet" href="../themes/default/default.css" />
<link rel="stylesheet" href="../plugins/code/prettify.css" />
<script charset="utf-8" src="../js/kindeditor.js"></script>
<script charset="utf-8" src="../lang/zh_CN.js"></script>
<script charset="utf-8" src="../plugins/code/prettify.js"></script>
	
<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="content"]', {
				cssPath : '../plugins/code/prettify.css',
				uploadJson : 'upload_json.jsp',
				fileManagerJson : 'file_manager_json.jsp',
				allowFileManager : true,
				items : [
				         'source', '|', 'preview','|', 'justifyleft', 'justifycenter', 'justifyright',
				         'justifyfull', 'insertorderedlist', 'insertunorderedlist', '|', 'indent', 'outdent', 'subscript', '|',
				         'superscript', 'clearhtml', 'quickformat', 'selectall', '|','formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
				         'italic', 'underline', 'strikethrough', 'lineheight','/', 'removeformat', '|', 'image', 
						 'table', 'hr',  'pagebreak','anchor', 'link', 'unlink', '|', 'about'
				 ],
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['add-article_form'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['add-article_form'].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
	
	
</head>
<body>
	<div id="main">
          
		<div id="wrapper">
			
			<form name="add-form" action="add-article.do" method="post" id="add-article_form">
				<label for="title">标题 ：&nbsp;&nbsp;&nbsp;</label><input id="title" type="text" name="title"/><span class="error"></span></br>
				<label for="source">来源 ：&nbsp;&nbsp;&nbsp;</label><input id="source" type="text" name="source"/><span class="error"></span></br>
				<label for="release_date">发布日期：</label><input id="release_date" type="text" name="releaseDate"/><span class="error"></span>日期格式(2012-7-30)</br>
				<textarea name="content" cols="100" rows="8" style="width:700px;height:400px;visibility:hidden;">
				
				</textarea>
				<br />
				<input type="submit" value="增加" class="btn btn_highlight" /><input type="reset" value="重置" class="btn btn_normal"/>(提交快捷键: Ctrl + Enter)
			</form>
		</div>
    </div>
</body>
</html>
